import { Investment } from '../model/investment'
export class InvestmentDao {
  queryInvestmentList(params: any): Promise<Array<Investment>> {
    return Investment.findAll({ where: params,
      limit: params.limit,
      offset: params.offset })
  }
  deleteInvestment(params: any): Promise<number> {
    return Investment.destroy({ where: params })
  }
  upsertInvestment(params: any): Promise<any> {
    return Investment.upsert(params)
  }
}